/*
 * @Description: 菜单
 * @Autor: 帅ZR帅
 * @Date: 2022-12-21 16:40:26
 * @LastEditors: 帅ZR帅
 * @LastEditTime: 2022-12-24 13:24:17
 */
#ifndef _MENU_H_
#define _MENU_H_
#include "headfile.h"
// 菜单结构体
typedef struct xMenu_Item
{
    uint8_t Menu_Num;
    void (*Menu_Title)(void);         // 菜单标题
    void (*Menu_Function)(void);      // 菜单函数
    struct xMenu_Item *Previous_Menu; // 上级菜单
    struct xMenu_Item *Next_Menu;     // 下级菜单
} xMenu_Item;

// 运行菜单
typedef struct xRuning_Menu
{
    struct xMenu_Item *Menu_Item; // 菜单地址
} xRuning_Menu;

extern xMenu_Item Menu_Null; //空菜单

extern uint8_t key0;
extern uint8_t key1;
extern uint8_t key2;
extern uint8_t key3;
extern uint8_t key4;
extern uint8_t key5;

void Menu_System_Init(void);
void Menu_Function(void); //??????????? ???????
#endif                    // !_MENU_H_